import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class Main {

	public static void main(String [] args) throws FileNotFoundException {
		try {
			FileInputStream fin = new FileInputStream(args[0]);
			
			new miniJavaParser(fin).Goal();
			System.out.println("Lexical analysis successfull");
		}
		catch (ParseException e) {
			System.out.println("Lexer Error : \n"+ e.toString());
		}
	}
}